<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<c:import url="WEB-INF/module/head.jsp"/>
<body class="hold-transition skin-blue sidebar-mini" ng-app="blog" ng-controller="userController" ng-init="init()">
<div class="wrapper">
    <!-- Main Header -->
    <header class="main-header">

        <!-- Logo -->
        <a href="index.jsp" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"><b>Minq</b></span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><b>明刻</b>后台系统</span>
        </a>

        <!-- Header Navbar -->
        <nav class="navbar navbar-static-top" role="navigation">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>
            <!-- Navbar Right Menu -->
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <!-- User Account Menu -->
                    <li class="dropdown user user-menu">
                        <!-- Menu Toggle Button -->
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <!-- The user image in the navbar-->
                            <img src="style/ext/dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
                            <!-- hidden-xs hides the username on small devices so only the image appears. -->
                            <span class="hidden-xs">{{user.name}}</span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- The user image in the menu -->
                            <li class="user-header">
                                <img src="style/ext/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">

                                <p>
                                    {{user.name}} - {{user.role.tag}}
                                    <small>创建时间：{{user.gmtCreate * 1000 | date :'yyyy-MM-dd HH:mm:ss'}}</small>
                                </p>
                            </li>
                            <!-- Menu Body -->
                            <li class="user-body">
                                <div class="row">
                                    <div class="col-xs-4 text-center">
                                        <a href="#" data-toggle="modal" data-target="#updPassword">修改密码</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a >无</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a >无</a>
                                    </div>
                                </div>
                                <!-- /.row -->
                            </li>
                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="#" onclick="skipUrlName('admin_info')" class="btn btn-default btn-flat">个人信息</a>
                                </div>
                                <div class="pull-right">
                                    <a href="/logout" class="btn btn-default btn-flat">登出</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">

            <!-- Sidebar user panel (optional) -->
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="style/ext/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                </div>
                <div class="pull-left info">
                    <p>{{user.name}}</p>
                    <!-- Status -->
                    <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                </div>
            </div>

            <!-- Sidebar Menu -->
            <ul class="sidebar-menu" data-widget="tree">
                <li class="header">
                    <font style="vertical-align: inherit;">
                        <font style="vertical-align: inherit;">主要导航</font>
                    </font>
                </li>
                <li class="active"><a href="#" onclick="skipUrlName('home')"><i class="fa fa-link"></i> <span>首页</span></a>
                </li>
                <li><a href="#" onclick="skipUrlName('edit_chapter')"><i class="fa fa-link"></i> <span>发布文章</span></a>
                </li>
                <li><a href="#" onclick="skipUrlName('edit_notice')"><i class="fa fa-link"></i> <span>发公告</span></a>
                </li>
                <li><a href="#" onclick="skipUrlName('list_feedback')"><i class="fa fa-link"></i> <span>反馈列表</span></a>
                </li>
                <li class="treeview">
                    <a href="#"><i class="fa fa-link"></i><span>公告管理</span>
                        <span class="pull-right-container">
									<i class="fa fa-angle-left pull-right"></i>
								</span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="#" onclick="skipUrlName('list_notice')">全部公告</a></li>
                        <li><a href="#" onclick="skipUrlName('list_notice_category')">全部分类</a></li>
                        <li><a href="#" onclick="skipUrlName('edit_notice_category')">添加分类</a></li>
                    </ul>
                </li>
                <li class="treeview">
                    <a href="#"><i class="fa fa-link"></i> <span>文章管理</span>
                        <span class="pull-right-container">
                            <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="#" onclick="skipUrlName('list_chapter')">全部文章</a></li>
                        <li><a href="#" onclick="skipUrlName('edit_chapter_category')">添加分类</a></li>
                        <li><a href="#" onclick="skipUrlName('list_chapter_category')">全部分类</a></li>
                        <li><a href="#" onclick="skipUrlName('list_chapter_label')">全部标签</a></li>

                    </ul>
                </li>
                <li class="treeview">
                    <a href="#"><i class="fa fa-link"></i> <span>特殊文章管理</span>
                        <span class="pull-right-container">
									<i class="fa fa-angle-left pull-right"></i>
								</span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="#" onclick="skipUrlName('list_chapter_special')">全部特殊文章</a></li>
                        <li><a href="#" onclick="skipUrlName('edit_chapter_special')">添加特殊文章</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#" onclick="skipUrlName('other')">
                        <i class="fa fa-link"></i>
                        <span>其他</span>
                    </a>
                </li>
                <li>
                    <a href="#" onclick="skipUrlName('test_func')">
                        <i class="fa fa-link"></i>
                        <span>测试功能</span>
                    </a>
                </li>
<!--                <li>-->
<!--                    <a href="#" onclick="skipUrlName('admin_info')">-->
<!--                        <i class="fa fa-link"></i>-->
<!--                        <span>个人信息</span>-->
<!--                    </a>-->
<!--                </li>-->
                <li>
                    <a href="#" onclick="skipUrlName('edit_config')">
                        <i class="fa fa-link"></i>
                        <span>系统设置</span>
                    </a>
                </li>
            </ul>
            <!-- /.sidebar-menu -->
        </section>
        <!-- /.sidebar -->
    </aside>

    <div class="content-wrapper">
        <iframe id="iframeContent" src="subpage/home.jsp" style="width: 100%;height: 100vw;"></iframe>
    </div>

    <!-- Main Footer -->
    <footer class="main-footer">
        <!-- To the right -->
        <div class="pull-right hidden-xs">
            Anything you want
        </div>
        <!-- Default to the left -->
        <strong>Copyright &copy; 2016 <a href="#">Company</a>.</strong> All rights reserved.
    </footer>

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
        <!-- Create the tabs -->
        <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
            <li class="active"><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
            <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
        </ul>
        <!-- Tab panes -->
        <div class="tab-content">
            <!-- Home tab content -->
            <div class="tab-pane active" id="control-sidebar-home-tab">
                <h3 class="control-sidebar-heading">Recent Activity</h3>
                <ul class="control-sidebar-menu">
                    <li>
                        <a href="javascript:;">
                            <i class="menu-icon fa fa-birthday-cake bg-red"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>

                                <p>Will be 23 on April 24th</p>
                            </div>
                        </a>
                    </li>
                </ul>
                <!-- /.control-sidebar-menu -->

                <h3 class="control-sidebar-heading">Tasks Progress</h3>
                <ul class="control-sidebar-menu">
                    <li>
                        <a href="javascript:;">
                            <h4 class="control-sidebar-subheading">
                                Custom Template Design
                                <span class="pull-right-container">
											<span class="label label-danger pull-right">70%</span>
										</span>
                            </h4>

                            <div class="progress progress-xxs">
                                <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
                            </div>
                        </a>
                    </li>
                </ul>
                <!-- /.control-sidebar-menu -->

            </div>
            <!-- /.tab-pane -->
            <!-- Stats tab content -->
            <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
            <!-- /.tab-pane -->
            <!-- Settings tab content -->
            <div class="tab-pane" id="control-sidebar-settings-tab">
                <form method="post">
                    <h3 class="control-sidebar-heading">General Settings</h3>

                    <div class="form-group">
                        <label class="control-sidebar-subheading">
                            Report panel usage
                            <input type="checkbox" class="pull-right" checked>
                        </label>

                        <p>
                            Some information about this general settings option
                        </p>
                    </div>
                    <!-- /.form-group -->
                </form>
            </div>
            <!-- /.tab-pane -->
        </div>
    </aside>
    <!-- /.control-sidebar -->
    <!-- Add the sidebar's background. This div must be placed  immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>
    <div class="modal fade" id="updPassword">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">修改密码</h4>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <input ng-model="others.oldPassword" type="password" class="form-control" placeholder="请输入旧密码 ....">
                    </div>
                    <div class="form-group">
                        <input ng-model="others.newPassword1" type="password" class="form-control" placeholder="请输入新密码 ....">
                    </div>
                    <div class="form-group">
                        <input ng-model="others.newPassword2" type="password" class="form-control" placeholder="请再次输入新密码 ....">
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default pull-left" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="updPassword()">确认</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>

</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->
<c:import url="WEB-INF/module/js.jsp"/>

</body>
</html>
